package com.dishdex.menuhub.app.controller;

import com.dishdex.menuhub.module.utils.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:
 * Package: com.dishdex.menuhub.app.controller
 * Description:
 *
 * @Author:
 * @Create 2025/10/22 9:58
 * @Version 1.0
 */
@RestController
@Slf4j
public class GlobalErrorController implements ErrorController {
    @RequestMapping("/error")
    public Response error() {
        return new Response(4004);
    }
}

